#ifndef TOOLBAR_H
#define TOOLBAR_H

#include <QtGui/QLineEdit>
#include <QAction>
#include <QWidget>
#include <QToolBar>
#include <QMainWindow>
#include <QIcon>

class ToolBar : public QWidget
{
	Q_OBJECT
public:
	explicit ToolBar(QWidget *parent = 0);
	inline QToolBar *bar(void) { return toolBar; }
signals:
	void urlChanged(QString newUrl);
public slots:
	void changeUrl(QString newUrl, int index = 0) { lineUrl->setText(newUrl); }

private slots:
	void emit_urlChanged(void) { emit urlChanged(lineUrl->text()); }
private:
	QAction *actionBack;
	QAction *actionForward;
	QAction *actionReload;
	QAction *actionConfigure;
	QToolBar *toolBar;
	QLineEdit *lineUrl;
};

#endif // TOOLBAR_H
